/*****************************************************************
 MYD Engine v0.1

 File: myd_entity2d.inl
 Created: 13/06/09
*****************************************************************/

inline void Entity2d::setName (std::string kName)
{
	m_kName = kName;
}
//----------------------------------------------------------------
inline const std::string& Entity2d::getName () const
{
	return m_kName;
}
//----------------------------------------------------------------
inline void Entity2d::setPos (float fX, float fY, float fZ)
{
	m_fX = fX;
	m_fY = fY;
	m_fZ = fZ;
}
//----------------------------------------------------------------
inline float Entity2d::getPosX () const
{
	return m_fX;
}
//----------------------------------------------------------------
inline float Entity2d::getPosY () const
{
	return m_fY;
}
//----------------------------------------------------------------
inline float Entity2d::getPosZ () const
{
	return m_fZ;
}
//----------------------------------------------------------------
inline void Entity2d::setRotation (float fRotation)
{
	m_fRotation = fRotation;
}
//----------------------------------------------------------------
inline float Entity2d::getRotation () const
{
	return m_fRotation;
}
//----------------------------------------------------------------
inline void Entity2d::setDim (float fW, float fH)
{
	m_fW = fW;
	m_fH = fH;
}
//----------------------------------------------------------------
inline float Entity2d::getWidth() const
{
	return m_fW;
}
//----------------------------------------------------------------
inline float Entity2d::getHeight() const
{
	return m_fH;
}
//----------------------------------------------------------------
inline void Entity2d::setSpeed(float speed)
{
	m_fMovSpeed = speed;
}
//----------------------------------------------------------------
inline void Entity2d::setAngle(float angle)
{
	m_fMovAngleRad = angle * 3.14159f / 180.0f;
}
//----------------------------------------------------------------
inline void Entity2d::setMoving(bool)
{
	isMoving = true;
}
//----------------------------------------------------------------
inline void Entity2d::setCollisionable(bool set)
{
	isCollisionable = set;
}